<?php echo form_open($this->curl . '/edit_resource/'.$this->validation->id, 'id="myform" name="myform"')?>
<?php echo form_hidden('id', $this->validation->id)?>
<br />
<table class="nostyle" width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
	<td>
		<?php echo $this->validation->error_string?>
		<table class="nostyle" width="100%" border="0" cellpadding="3" cellspacing="0">
		<tr>
			<th><?php echo $this->account_resource_model->fields['category']?>:<?php $this->load->view('_elements/obligatory');?></th>
			<td><?php echo form_input('category', $this->validation->category, 'class="input-text" size="50"')?></td>
		</tr>		
		<tr>
			<th><?php echo $this->account_resource_model->fields['controller']?>:</th>
			<td><?php echo form_input('controller', $this->validation->controller, 'class="input-text" size="50"')?></td>
		</tr>
		<tr>
			<th><?php echo $this->account_resource_model->fields['action']?>:</th>
			<td><?php echo form_input('action', $this->validation->action, 'class="input-text" size="50"')?></td>
		</tr>
		<tr>
			<th><?php echo $this->account_resource_model->fields['description']?>:</th>
			<td><?php echo form_input('description', $this->validation->description, 'class="input-text" size="50"')?></td>
		</tr>
		<tr>
			<td colspan="2">&nbsp;</td>
		</tr>
		<tr>
			<td colspan="2">			
				<input name="edit" type="submit" class="input-submit" id="submit" value="<?php echo T_('Submit')?>" />
				<input name="reset"  type="reset"  class="input-submit" id="reset" value="<?php echo T_('Reset')?>" onclick="$('#create_form input[type=text]').val('');" />
				<input name="delete" type="button" class="input-submit" id="delete" value="<?php echo T_('Удалить')?>" onclick="if (confirm('<?php echo T_('Are you sure you want to delete this data?')?>')) location='/admin/<?php echo $this->curl; ?>/delete_resource/<?php echo $this->validation->id?>';return false;" />
			</td>
		</tr>
		</table>
	</td>
</tr>
</table>

<?php echo form_close()?>